package com.zhouk.ams.wx;

import lombok.Data;

/**
 * Create By Zhouke on 2017/09/30
 */
@Data
public class WxMsg {
    public static final String TO_USER_NAME = "ToUserName";
    public static final String FROM_USER_NAME = "FromUserName";
    public static final String CREATE_TIME = "CreateTime";
    public static final String MSG_TYPE = "MsgType";
    public static final String CONTENT = "Content";
    public static final String MSG_ID = "MsgId";


    private String toUserName;
    private String fromUserName;
    private String createTime;
    private String content;
    private String msgType;
    private String msgId;

    public WxMsg() {

    }

    public WxMsg(String toUserName, String fromUserName, String createTime, String content, String msgType, String msgId) {
        this.toUserName = toUserName;
        this.fromUserName = fromUserName;
        this.createTime = createTime;
        this.content = content;
        this.msgType = msgType;
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "WxMsg{" +
                "toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime='" + createTime + '\'' +
                ", content='" + content + '\'' +
                ", msgType='" + msgType + '\'' +
                ", msgId='" + msgId + '\'' +
                '}';
    }
}
